#ifndef REGIONALLOCATIONMESSAGE_H_
#define REGIONALLOCATIONMESSAGE_H_

#include <string>
#include "ariba/ariba.h"

using namespace ariba;
using std::string;

using_serialization;

class RegionAllocationMessage : public Message {
	VSERIALIZEABLE;

public:
	RegionAllocationMessage();
	RegionAllocationMessage(uint32_t x, uint32_t y, bool isBackup);
	virtual ~RegionAllocationMessage();
    uint32_t getX() const;
    uint32_t getY() const;
    bool getIsBackup() const;
    void setX(uint32_t x);
    void setY(uint32_t y);

private:
	uint32_t x;
	uint32_t y;
	bool isBackup;
};

sznBeginDefault( RegionAllocationMessage, X ) {
	X && isBackup && x && y;
} sznEnd();

#endif /* REGIONALLOCATIONMESSAGE_H_ */
